﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadProps.ChangeTracking
{
    public class Change
    {
        public IProp Prop { get; private set; }
        public object StartingValue { get; private set; }
        public object EndingValue { get; set; }
        public bool IsTagalong { get; private set; }

        public Change(IProp prop, object startingValue, object endingValue)
        {
            this.Prop = prop.ThrowIfNull("prop");
            this.StartingValue = startingValue;
            this.EndingValue = endingValue;
            IsTagalong = Meta.Tracking.Of(prop) == Tracking.Tagalong;
        }
    }
}
